package com.xiaoluo.lottery.service;

import com.xiaoluo.lottery.common.weixin.base.IPaidCallBack;
import com.xiaoluo.lottery.entity.Order;
import com.xiaoluo.lottery.entity.PlayRecord;
import com.xiaoluo.lottery.entity.Round;
import com.xiaoluo.lottery.request.CreateRoundRequest;
import com.xiaoluo.lottery.request.JoinRoundRequest;
import com.xiaoluo.lottery.vo.CreateRoundResult;
import com.xiaoluo.lottery.vo.RoundVo;

/**
 * Created by Caedmon on 2016/4/5.
 */
public interface RoundService extends IPaidCallBack{
    /**
     * 创建一局游戏
     * */
    CreateRoundResult createRound(CreateRoundRequest settings);
    /**
     * 参与游戏
     * */
    PlayRecord joinRound(JoinRoundRequest request);

    /**
     * 开奖
     * */
    Round award(Round round);
    /**
     * 获取游戏信息
     * */
    Round getRound(long roundId);

    Order getPreJoinPayOrder(JoinRoundRequest request);

    RoundVo getRoundDetail(long roundId);
}
